package com.ruoyi.manage.service.impl;

import java.util.List;

import com.ruoyi.manage.service.BmAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.manage.mapper.BmAddressMapper;
import com.ruoyi.manage.domain.BmAddress;
import com.ruoyi.manage.service.BmAddressService;

/**
 * 店铺信息Service业务层处理
 *
 * @author ruoyi
 * @date 2022-11-09
 */
@Service
public class BmAddressServiceImpl implements BmAddressService
{
    @Autowired
    private BmAddressMapper bmAddressMapper;

    /**
     * 查询店铺信息
     *
     * @param addid 店铺信息主键
     * @return 店铺信息
     */
    @Override
    public BmAddress selectBmAddressByAddid(Long addid)
    {
        return bmAddressMapper.selectBmAddressByAddid(addid);
    }

    /**
     * 查询店铺信息列表
     *
     * @param bmAddress 店铺信息
     * @return 店铺信息
     */
    @Override
    public List<BmAddress> selectBmAddressList(BmAddress bmAddress)
    {
        return bmAddressMapper.selectBmAddressList(bmAddress);
    }

    /**
     * 新增店铺信息
     *
     * @param bmAddress 店铺信息
     * @return 结果
     */
    @Override
    public int insertBmAddress(BmAddress bmAddress)
    {
        return bmAddressMapper.insertBmAddress(bmAddress);
    }

    /**
     * 修改店铺信息
     *
     * @param bmAddress 店铺信息
     * @return 结果
     */
    @Override
    public int updateBmAddress(BmAddress bmAddress)
    {
        return bmAddressMapper.updateBmAddress(bmAddress);
    }

    /**
     * 批量删除店铺信息
     *
     * @param addids 需要删除的店铺信息主键
     * @return 结果
     */
    @Override
    public int deleteBmAddressByAddids(Long[] addids)
    {
        return bmAddressMapper.deleteBmAddressByAddids(addids);
    }

    /**
     * 删除店铺信息信息
     *
     * @param addid 店铺信息主键
     * @return 结果
     */
    @Override
    public int deleteBmAddressByAddid(Long addid)
    {
        return bmAddressMapper.deleteBmAddressByAddid(addid);
    }
}

